/**
 * @constructor
 * @implements {traqk.lib.data.Manager}
 * @private
 */
traqk.client.data.IDBManager = function() {
	window.indexedDB = window.indexedDB ||
			window.webkitIndexedDB || window.mozIndexedDB;
	if (!window.IDBTransaction) {
		window.IDBTransaction = window.webkitIDBTransaction;	
	};

	if (window.indexedDB) {
		var request = window.indexedDB.open(traqk.client.data.IDBManager.IDB_NAME,
				traqk.client.data.IDBManager.IDB_VERSION);
		request.onupgradeneeded = function(event) {
			var db = event.target.result;
			
			var entities = db.createObjectStore('entities'), {}
		};
	}
};
goog.addSingletonGetter(traqk.client.data.IDBManager);

traqk.client.data.IDBManager.IDB_NAME = 'TraqkDB';
traqk.client.data.IDBManager.IDB_DESC = 'Traqk WebApp Database';
traqk.client.data.IDBManager.IDB_VERSION = 1;